import request from '@/utils/request'

// 查询身体部位分类列表
export function listPart1(query) {
  return request({
    url: '/tcm/part1/list',
    method: 'get',
    params: query
  })
}

// 查询身体部位分类详细
export function getPart1(id) {
  return request({
    url: '/tcm/part1/' + id,
    method: 'get'
  })
}

// 新增身体部位分类
export function addPart1(data) {
  return request({
    url: '/tcm/part1',
    method: 'post',
    data: data
  })
}

// 修改身体部位分类
export function updatePart1(data) {
  return request({
    url: '/tcm/part1',
    method: 'put',
    data: data
  })
}

// 删除身体部位分类
export function delPart1(id) {
  return request({
    url: '/tcm/part1/' + id,
    method: 'delete'
  })
}
